package models

import "time"

// 学生助学金
type SysStuGrant struct {
	ID int `json:"id" gorm:"primary key;AUTO_INCREMENT"`	// 课程号
	StuID int `json:"stu_id"`
	GrantID int `json:"grant_id"`
	GrantLevel string `json:"grant_level"`
	GrantAmount int `json:"grant_amount"`
	GrantTime time.Time `json:"grant_time"`
	IsLoan int `json:"is_loan"`
	Student SysStudent `gorm:"ForeignKey:StuID;AssociationForeignKey:StuID" json:"student"`
	Grant SysGrant `gorm:"ForeignKey:GrantID;AssociationForeignKey:ID" json:"grant"`
}